<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>试卷中心</title>
		<link rel="stylesheet" href="layui/css/layui%20-%20副本.css" media="all">
		<link rel="shortcut icon" href="img/logo.png" />
		<link rel="stylesheet" type="text/css" href="./css/learn-HomePage/learn-homePage.css"/>
		<script src="jquery/jquery-1.11.3.min.js" charset="UTF-8"></script>
		<style type="text/css">
			/* .layui-menu-body-title:hover {
				#1e9fff
			} */

			.layui-menu-item-checked {
				border-right: white;
			}

			/* 右边虚线 */
			.bk {
				width: 60px;
				border-right: 1px solid #e7e6eb;
			}

			iframe {
				width: 95%;
				height: 500px;
			}
		</style>
		<!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
	</head>
	<body>
		<div class="layui-row layui-header" style="border-bottom: 1px solid red;">
			<!-- 导航栏 -->
			<header>
				<a name="dbl"></a>
				<div class="dbl">
					<div>
						<img src="img/learn-HomePage-img/farbnf.png" class="logo"/>
					</div>
					<div>
						<ul>
							<li id="a">
								<div class="one"  style="height: 50px; width: 50px;">
									<img src="img/learn-HomePage-img/3.png" class="tx" id="show"  />
								</div>
								<ul id="erji" class="erji">
									<li><a href="learn_Personal.html">个人中心</a></li>
									<li><a href="javascript:;"><span onclick="clos()">退出</span></a></li>
								</ul>
							</li>
							<li id="a"><a href="learn_WrongBook.html">错题本</a></li>
							<li id="a"><a href="learn-Testrecords.html">考试记录</a></li>
							<li id="a"><a href="learn-Testcenter.html">试卷中心</a></li>
							<li id="a"><a href="learn_IntelligentTraining.html">智能训练</a></li>
							<li id="a"><a href="learn-VideoClass.html">视频课堂</a></li>
							<li id="a"><a href="learn-Homepage.html">首页</a></li>
						</ul>
					</div>
					
				</div>
				
			</header>
		</div>
		<div class="layui-row">
			<div class="layui-col-md2">
				<div class=" layui-col-space30" id="demo-box" style="margin: 0 auto; max-width: 50px;">
					<div class="layui-col-xs9 layui-col-md3">
						<ul class="layui-menu" id="demo1">
							<li class="layui-menu-item-group layui-menu-item-down" lay-options="{type: 'group'}">
								<ul>
									<li class="layui-menu-item-group"
										lay-options="{type: 'group', isAllowSpread: false}">
										<ul class="bk" id="xxul">
											<!-- <li class="layui-menu-item-checked">
												<div class="layui-menu-body-title"><a href="learn-Testpage.html"
														target="page"></a></div> -->
											<!-- </li> -->
										</ul>
									</li>
								</ul>
							</li>
						</ul>
					</div>
				</div>
			</div>
			<div class="layui-col-md10" style="margin-top: 40px;">
				<iframe src="learn-Testpage.html?subjectId=0" width="50" name="page" frameborder="0"></iframe>
			</div>
		</div>
		<footer>
			<div>
				<ul class="foter" style="width: 100%; ">
					<li>
						<p style="font-size: 20px;">产品介绍</p>
						<br>
						<p><a href="https://www.mindskip.net/sdd.html">思多多智能考试平台</a></p>
						<p><a href="https://www.mindskip.net/wdd.html">维多多培训考试系统</a></p>
						<p><a href="https://www.mindskip.net/xdd.html">学多多考试系统</a></p>
						<p><a href="https://www.mindskip.net/xzs.html">学致死考试系统</a></p>
					</li>
					
					<li>
						<p style="font-size: 20px;">跃考 H5、小程序</p>
						<img src="img/learn-HomePage-img/foewm.PNG" style="width: 90%;"/>
					</li>
					<li>
						<p style="font-size: 20px;">维考 H5、小程序</p>
						<img src="img/learn-HomePage-img/wk.PNG" style="width: 90%;"/>
					</li>
					<li>
						<p style="font-size: 20px;">学多多小程序</p>
						<img src="img/learn-HomePage-img/xdd.PNG" style="width: 90%;"/>
					</li>
					<li>
						<p style="font-size: 20px;">关于我们</p>
						<img src="img/learn-HomePage-img/gywm.PNG" style="width: 90%;"/>
					</li>
					<li style="float: right;">
						<p style="font-size: 20px;">开源社区</p>
						<a href="https://github.com/mindskip/xzs"><img src="img/learn-HomePage-img/gywm1.PNG" style="width: 40%;"/></a>
						<a href="https://gitee.com/mindskip/uexam"><img src="img/learn-HomePage-img/kysq2.PNG" style="width: 40%;"/></a>
					</li>
					<div style="clear: both;"></div>
				</ul>
				
			</div>
			
			
		</footer>


		<script src="layui/layui.js" charset="utf-8"></script>
		<script>
			$(function() {
				$.ajax({
					url: 'http://localhost:8081/studentPaper/getRedis',
					async: false,
					type: "post",
					dataType: "json",
					success: function(data) {
						//console.log(data);
						var item = data.data;
						for (var i = 0; i < item.length; i++) {
							var userGradeId = item[i].userGradeId;
						}
						var userGradeId = userGradeId;
						$.ajax({
							url: 'http://localhost:8081/subject/selSubject?subjectGradeId='+userGradeId+'',
							type: "post",
							dataType: "json",
							success: function(data) {								
								var item = data.data;
								console.log(data);
								// var subjectName = "";
								//获取ul的id
								var box = document.getElementById("xxul");
								for (var i = 0; i < item.length; i++) {
									box.innerHTML=box.innerHTML+'<li class="layui-menu-body-title">' + 
									'<a href="learn-Testpage.html?subjectId='+item[i].subjectId+'"target="page">' +item[i].subjectName+ '</a>'+'</li>';
								}
							},
						})
					},
				})
			})
    	</script>
		<script>
			var show = document.getElementById("show")
			var erji1 = document.getElementById("erji");
			show.onclick = function(){
				if(erji1.style.display=="none"){
					erji1.style.display="block";
					// erji1.style.z-index="5"
				}else{
					erji1.style.display="none";
					
					 // z-index:999
				}
			}
			//退出
			function clos(){
				 if(confirm("您确定要退出本系统吗？")){
					$.ajax({
						type:"POST",
						url:"http://localhost:8081/infomation/logout",
						dataType:"text",
						// async:false,
						success:function(data){
							if(data=="200"){
								alert("退出成功");
								window.location.href = "student_login.html";
							}else{
								alert("退出失败");
							}
						}
					})
				}
			};
		</script>
		<!-- 注意：如果你直接复制所有代码到本地，上述 JS 路径需要改成你本地的-->
		
	</body>
</html>